<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class="business-manwife">代垫信息</div>
<div class="business-padding">
	<table cellpadding="0" cellspacing="0" border="0" class="infor-table">
		<tbody><tr>
			<td align="right">
				<label class="control-label np">数据导入时间：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="dateInstead"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">当前余额：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="balance"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">最低还款额：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="amountLowest"></label></div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="control-label np">透支本金：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="principleOverdraft"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">透支利息：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="interestOverdraft"></label></div>
			</td>
			<td align="right">
				<label class="control-label np">分期付款授权累计：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="accreditTotal"></label></div>
			</td>
		</tr>
		
		<tr>
			<td align="right">
				<label class="control-label np">当前逾期期限段：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="stage"></label></div>
			</td>
			
			<td align="right">
				<label class="control-label np">违约金连续收取次数：</label>
			</td>
			<td>
				<div class="control-div np" id=""><label id="numContinuous"></label></div>
			</td>
		</tr>
	</tbody></table>
	<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table" style="margin-bottom: 0px;">
					 <tbody>
					 	<tr>
							<td align="right">
								<label class="control-label np">垫资日期：</label>
							</td>
							<td>
								<input id="dateInstead1" name=""  class="laydate-icon form-control" readonly="readonly" />
							</td>
						</tr>	
					</tbody>
				</table>
				<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">	
					<tr>
						<td align="right" valign="top">
							<label class="control-label np">信息备注：</label>
						</td>
						<td>
							<textarea id="remarks" rows="" readonly="readonly" cols="100" class="form-control"></textarea>
						</td>
					</tr>
				</table>
</div>
<!-- public quote -->
<%@include file="/jsp/comm_js_include.jsp"%>
<script type="text/javascript">
	$(function(){
		getData();
	});
	 var getData=function(){
    	$.dpAjax({
	          url: '${basePath}/DhInsteadPaymentController/list',
	          data: {"busiId":$.getUrlData("busiId")},
	          success: function (datas) {
	          	  if(datas.result.rows.length>0){
		          	var data=datas.result.rows[0];
		          	document.getElementById("dateInstead").innerText=data.dateInstead;
		          	document.getElementById("balance").innerText=data.balance;
		          	document.getElementById("amountLowest").innerText=data.amountLowest;
		          	document.getElementById("principleOverdraft").innerText=data.principleOverdraft;
		          	document.getElementById("interestOverdraft").innerText=data.interestOverdraft;
		          	document.getElementById("accreditTotal").innerText=data.accreditTotal;
		          	document.getElementById("stage").innerText=data.stage;
		          	document.getElementById("numContinuous").innerText=data.numContinuous;
		          	document.getElementById("dateInstead1").value=data.dateInstead;
		          	document.getElementById("remarks").value=data.remarks;
	          	  }
	          }
	      });
    }
</script>